<h1>Kategorije</h1>

<table id="rounded-corner">
  <thead>
    <tr>
      
        <th class="rounded-company">Naziv</th>
      <th>Opis</th>
      <th>Oblast</th>
      <th>Izmena</th>
      <th class="rounded-qend">Brisanje</th>
    </tr>
  </thead>
   <tfoot>
    	<tr>
        	<td colspan="" class="rounded-foot-left">&nbsp;</td>
                <td colspan="3" ><em>&nbsp</em></td>                    
        	<td class="rounded-foot-right">  <a href="<?php echo url_for('kategorija/new') ?>">Dodavanje</a></td>
        </tr>
    </tfoot>
  <tbody>
    <?php foreach ($kategorija_list as $kategorija): ?>
    <tr>
      <td><?php echo $kategorija->getNaziv() ?></td>
      <td><?php echo $kategorija->getOpis() ?></td>
      <td><?php echo $kategorija->getOblast()->getNaziv() ?></td>
      <td><?php echo button_to('Izmena', 'kategorija/edit?id='.$kategorija->getId())?></td>
    <td><?php echo button_to('Brisanje', 'kategorija/delete?id='.$kategorija->getId(), array('confirm'=>'Da li ste sigurni?'))?></td>
    
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>


